<?php

namespace app\validate;

class AdminValidate extends BaseValidate
{
    protected $field = [
        'username' => '管理员帐号',
        'email' => '管理员邮箱',
        'password' => '管理员密码',
        'nickname' => '昵称',
    ];

    protected $rule = [
        'username' => 'require|alphaNum|min:4|max:20',
        'email' => 'require|email|min:3|max:200',
        'password' => 'require|alphaNum|min:6|max:20',
        'nickname' => 'require|chsAlphaNum|min:2|max:20',
    ];
}
